#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

int main()
{
  if(fork()==0){
    //execl("/root/proc", "./proc", "NULL");
    char* argv[] = {
        "ls",
        "-a",
        "-l",
        "-i",
        NULL
    };
    //execv("/usr/bin/ls", argv);
    //execlp("ls","ls","-l",NULL);
    execle()
    exit(0);
  }
  waitpid(-1, NULL, 0);
  printf("I am parent !\n");
 // printf("I am a process! pid:%d\n", getpid());
 // execl("/usr/bin/lssssss", "ls", "-a", "-l", NULL);
 // printf("hello\n");
 // printf("hello\n");
 // printf("hello\n");
 // return 0;
}
